<template>
    <div>
        <userheader></userheader>
        <!-- <button @click="login">用户注册</button> -->
         <Userinfo></Userinfo>
        <Userredbag></Userredbag>
        <Usercontent></Usercontent>
        <qiehuan :pages='4'></qiehuan>
    </div>
</template>
<script>
import axios from 'axios'
import userheader from './userheader'
import qiehuan from '@/common/qiehuan'
// import denglu from './denglu'
import Userinfo from './Userinfo'
import Userredbag from './Userredbag'
import Usercontent from './Usercontent'

export default {
    name: 'User',
    methods:{
        login(){
            let url= 'http://192.168.0.182:10002/user/register'
            axios.post(url,{
                uname: 'xxx',
                upassword: '123456789'
            }).then((res)=>{
                console.log(res)
                let resdata = res.data;
                if(resdata.reson == ''){
                    alert(resdata.result.msg)
                }else{
                    console.log(resdata.reason)
                }
            }).catch((err)=>{
                console.log('错误',err);
                
            })
        }
    },
    components:{
        userheader,
        qiehuan,
        // denglu
        Userinfo,
        Userredbag,
        Usercontent
    }
}
</script>
<style lang="stylus" scoped>
    div
        background-color #f5f5f5
</style>


